Piwik\Common D

Total Complexity 178
Dependencies 11
Dependents 450
Total lines 1,055
Lines of code 509
Logical lines of code 304
Comment lines 467
Methods 53
Properties 2

Methods 53

Method Rating Maintainability Complexity Lines of code
getRequestVar()
C
38 25 64
extractLanguageAndRegionCodeFromBrowserLanguage()
A
51 9 26
sanitizeInputValues()
A
54 8 20
extractCountryCodeFromBrowserLanguage()
A
55 8 19
sendHeader()
A
56 8 16
getLastJsonError()
S
58 7 17
sendResponseCode()
S
54 6 16
isPhpCliMode()
S
61 6 12
getBrowserLanguage()
S
51 5 26
stripHeader()
S
65 5 8
hashEquals()
S
59 4 14
hash()
S
60 4 13
safe_unserialize()
S
60 4 12
printDebug()
S
62 4 12
unprefixTable()
S
61 4 11
getCountry()
S
65 4 8
extractLanguageCodeFromBrowserLanguage()
S
60 3 13
getCampaignParameters()
S
60 3 12
getProcessId()
S
63 3 11
sanitizeString()
S
62 3 11
unsanitizeInputValues()
S
63 3 11
getContinent()
S
66 3 8
forceDotAsSeparatorForDecimalPoint()
S
70 3 6
destroy()
S
68 3 7
convertVisitorIdToBin()
S
68 3 6
getSqlStringFieldsArray()
S
63 3 10
stringEndsWith()
S
64 3 10
getCurrentLocationProviderId()
S
73 2 4
isXmlHttpRequest()
S
77 2 3
checkValidLanguagesIsSet()
S
67 2 8
prefixTables()
S
69 2 7
getRandomString()
S
64 2 9
isRunningConsoleCommand()
S
67 2 7
getRandomInt()
S
70 2 6
sanitizeLineBreaks()
S
77 2 3
convertUserIdToVisitorIdBin()
S
75 1 4
mb_strtolower()
S
79 1 3
isGoalPluginEnabled()
S
78 1 3
isActionsPluginEnabled()
S
78 1 3
isPhpCgiType()
S
74 1 4
mb_substr()
S
78 1 3
mb_strlen()
S
79 1 3
unsanitizeInputValue()
S
78 1 3
mb_strtoupper()
S
79 1 3
sanitizeInputValue()
S
73 1 5
hasJsonErrorOccurred()
S
79 1 3
sanitizeNullBytes()
S
78 1 3
generateUniqId()
S
79 1 3
prefixTable()
S
74 1 4
getProviderNames()
S
72 1 5
getClassLineage()
S
74 1 4
hex2bin()
S
79 1 3
hashStringToInt()
S
73 1 4